package com.abc.xxx.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.abc.xxx.model.vo.AccessiblePage;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
@TableName("t_role")
public class Role {

    @TableId
    private Integer id;
    private String name;
    private Integer dataScope;
    private LocalDateTime updated;

    @TableField(exist = false)
    private List<AccessiblePage> accessiblePages = new ArrayList<>(128);

    @TableField(exist = false)
    private List<Integer> accessibleDepts = new ArrayList<>(32);

}
